package com.gxaedu.rbac.controller;

import com.gxaedu.rbac.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author:Teacher黄
 * @date:Created at 2020/04/20
 */
@Controller
public class IndexController {


    /**
     * 后台的主页
     * @return
     */
    @GetMapping({"/","/index"})
    public String index(){
        // 主页
        return "index";
    }


    /**
     * 欢迎页
     * @return
     */
    @GetMapping("/welcome")
    public String welcome(){
        return "welcome";
    }


}
